#!/bin/bash
set -e

echo "Waiting for database connection..."
python init_db.py
 
echo "Starting Flask application..."
exec gunicorn --bind 0.0.0.0:5000 --workers 4 --timeout 120 app:app 